<?php

class UrgentJobs extends CWidget {

    public $lang = 'th';

    public function run() {
        $jobsUrgent= JobsManage::getJobsUrgent($this->lang);
        ?>
        <div class="panel panel-danger">
            <!-- Default panel contents -->
            <div class="panel-heading"><img src="images/001_11.png"> <b><?= $this->lang=='th'?'ตำแหน่งงานที่ต้องการด่วน':'Urgent Jobs'?></b></div>
            <!-- Table -->
            <table class="table table-hover">
                <?php
                foreach ($jobsUrgent as $job) { ?>
                
                <tr><td>
                        <a href="index.php?lang=<?=$this->lang?>&r=Jobs/Detail&id=<?= $job['JobID'] ?>"><?= $job['Position'] ?></a>
                         <span class="label label-important">ด่วน!!</span></td></tr>
                
                <?php } ?>
            </table>
        </div>
        <?php
    }

}
?>
